package com.offcn.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: wy
 * @Date: 2022/9/23 17:32
 */
@Configuration
public class QueueConfig {

    /**
     * 定义简单队列名
     */
    private String simpleQueue="test.queue";


    //@Bean
    public Queue queue(){
        return new Queue(simpleQueue);
    }
}
